package com.tonghe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tonghe.domain.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 标签(Tag)表数据库访问层
 *
 * @author makejava
 * @since 2022-07-24 23:29:05
 */
@Mapper
public interface TagMapper extends BaseMapper<Tag> {

    Tag checkTagNameUnique(@Param("name") String name, @Param("id") Long id);

    Tag checkTagExistArticle(Long tagId);

    int updateTag(Tag tag);
}

